package com.technology.string;

public class StringUsing {

	public static void main(String[] args) {
		String str = new String("testString"),
			otherString = "testString";
		String s = str + otherString; //new String(str).concat(new String(otherString))
		s = str.concat(otherString);
	
	}
	
	public boolean isEmpty(String str){
		return str == null || str.length() == 0;
	}

	public String concatStrs(String str1, String str2){
		if (isEmpty(str1)){
			str1= "";
		}
		if (isEmpty(str2)){
			str2= "";
		}
		return str1.concat(str2);
	}
}
